package com.itheima.api;

import com.itheima.Type.CommentType;
import com.itheima.mongo.Comment;

import java.util.List;

public interface CommentApi {

    //发布评论
    Integer save(Comment comment);

    //分页查询评论列表
    List<Comment> findComments(String movementId, CommentType comment, Integer page, Integer pagesize);
    //动态点赞 判断comment动态表 数据是否存在
    Boolean hasComment(String movementId, Long userId, CommentType like);
    //取消点赞    删除comment数据
    Integer delete(Comment comment);


    //评论点赞 判断comment动态表 数据是否存在
    Boolean commentsThumb(String movementId, Long userId, CommentType like);
    //取消评论点赞    删除comment数据
    Integer delete2(Comment comment);
    //评论状态查询 增加点赞数量
    Integer save1(Comment comment);


}
